package com.qian.service.ddj.entity;

import com.yaowk.service.common.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.annotations.CreationTimestamp;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.math.BigDecimal;
import java.util.Date;

@Getter
@Setter
@ToString
@Entity
@DynamicInsert
@DynamicUpdate
public class DdjDaifuLog extends BaseEntity<Integer> {

    @Column(nullable = false)
    private Integer userId;
    @Column(nullable = false)
    private BigDecimal money;
    @Column(nullable = false)
    private String cardNo;
    @Column(nullable = false)
    private String name;
    private String respCode;
    private String respInfo;
    private String orderId;
    @Column(nullable = false, updatable = false)
    @CreationTimestamp
    private Date createTime;
}
